﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Windows.Controls;
using System.Windows.Media.Imaging;

namespace VisualRemoteController
{
    class GUICommandDecoratorWindowImageStrategy : GUICommandDecoratorStrategy
    {
        WindowImage windowImage = null;

        public GUICommandDecoratorWindowImageStrategy()
        {
            this.windowImage = new WindowImage("Object State");
        }

        public GUICommandDecoratorWindowImageStrategy(WindowImage windowImage)
        {
            this.windowImage = windowImage;
        }


        #region CommandGUIDecoratorStrategy Members

        public void ShowGUIExecute(BitmapImage ExecuteBitmapImage)
        {
            if(windowImage != null && ExecuteBitmapImage != null)
                windowImage.setImage(ExecuteBitmapImage);
        }

        public void ShowGUIUndo(BitmapImage UndoBitmapImage)
        {
            if (windowImage != null && UndoBitmapImage != null)
                windowImage.setImage(UndoBitmapImage);
        }

        #endregion
    }
}
